<include file="Public/min-header" />
<link href="/Public/dist/css/beyond.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
	.h4, h4{font-size: 14px;}
	.small-box h3{font-size:26px;}
	.small-box{border-radius: 10px;}
	.small-box .icon{font-size: 80px;}
	.databox.databox-vertical.databox-xlg.databox-halved .databox-bottom{height:200px;}
	.databox.databox-vertical.databox-xlg{height:260px;overflow:hidden;}
	.profile-container .profile-header .profile-stats .inlinestats-col{min-height: 75px;}
	.profile-container .profile-header .profile-info{min-height: 195px;}
	.title_box_span{
		font-size: 24px;
		margin-left: 20px;
	}
	.title_box_list{
		width: 100%;
		float: left;
		margin-top: 20px;
	}
	.title_box_list_title{
		font-size: 12px;
		margin-left: 20px;
		float: left;
	}
	.title_box_list_time{
		font-size: 12px;
		margin-left: 20px;
		float: left;
	}
.gundong{
		width: 80%;
		margin:0 auto;
	}
	.z-text-roll{

		height: 30px;
		line-height: 30px;
		color:#0c0c0c;
		background: red;
		font-size: 16px;
		border-radius: 20px;
		margin:0 auto;
		margin-bottom: 20px;
		padding:0px 20px;
		font-weight: bold;
	}
	.z-text-roll {
		/* 最大宽度 */
		width: 100%;
		/* 不允许换行 */
		white-space: nowrap;
		/* 超出隐藏 */
		overflow: hidden;
		position: relative;
		--gap: 20px;
		--time: 3s;
	}
	.z-text-roll>span {
		position: relative;
		display: inline-block;
	}
	.z-text-roll>span::before {
		content: attr(data-text);
		position: relative;
		left: 0;
	}
	.z-text-roll.z-is-roll>span::before {
		--index:0;
		animation: z-text-anim var(--time) linear infinite;
	}
	.z-text-roll.z-is-roll>span::after {
		content: attr(data-text);
		position: absolute;
		left: calc(100% + var(--gap));
		--index:1;
		animation: z-text-anim var(--time) linear infinite;
	}

	@keyframes z-text-anim {
		0% {
			/* --index 为第几个文本 */
			left: calc((100% + var(--gap)) * var(--index));
		}
		100% {
			left: calc((100% + var(--gap)) * (var(--index) - 1));
		}
	}
	/* 更多 */
	.z-text-roll>span>font {
		display: none;
	}
	.z-text-roll.z-is-roll>span>font {
		display: inline-block;
		position: absolute;
		left: calc((100% + var(--gap)) * 1);
		--index:2;
		animation: z-text-anim var(--time) linear infinite;
	}
	.z-text-roll.z-is-roll>span>font>span {
		margin-right: var(--gap);
	}


</style>
<div class="wrapper">
     <include file="Public/breadcrumb"/>
     <section class="content">
         <div class="gundong aaaa" style="display:none;">
			<div class="z-text-roll z-is-roll  sssss"  style="--gap: 300px;--time: 30s;color:#fff;text-align:center;">
				
			</div>
		</div>
		 <div class="row">
				<a href="/Seller/Report/index" class="small-box-footer">
				<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
				                                    <div class="databox radius-bordered databox-shadowed databox-graded">
				                                        <div class="databox-left bg-themesecondary">
				                                            <div class="databox-piechart">
				                                                <div data-toggle="easypiechart" class="easyPieChart" data-barcolor="#fff" data-linecap="butt" data-percent="50" data-animate="500" data-linewidth="3" data-size="47" data-trackcolor="rgba(255,255,255,0.1)" style="width: 47px; height: 47px; line-height: 47px;font-size:28px;">
																	<i class="fa fa-line-chart"></i>
																</div>
				                                            </div>
				                                        </div>
				                                        <div class="databox-right">
				                                            <span class="databox-number themesecondary"><if condition="$count['heji_price'] gt 0">{$count.heji_price}<else/>0</if></span>
				                                            <div class="databox-text darkgray">销售额</div>
				                                            <div class="databox-stat themesecondary radius-bordered">
				                                                <i class="stat-icon icon-lg fa fa-pie-chart"></i>
				                                            </div>
				                                        </div>
				                                    </div>
				                                </div>
											</a>
					<a href="/Seller/Report/index" class="small-box-footer">
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                                    <div class="databox radius-bordered databox-shadowed databox-graded">
                                        <div class="databox-left bg-themethirdcolor">
                                            <div class="databox-piechart">
                                                <div data-toggle="easypiechart" class="easyPieChart" data-barcolor="#fff" data-linecap="butt" data-percent="50" data-animate="500" data-linewidth="3" data-size="47" data-trackcolor="rgba(255,255,255,0.1)" style="width: 47px; height: 47px; line-height: 47px;font-size:28px;">
                                                	<i class="fa fa-calculator"></i>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="databox-right">
                                            <span class="databox-number themesecondary"><if condition="$count['total_amount'] gt 0">{$count.total_amount}<else/>0</if></span>
                                            <div class="databox-text darkgray">今日销售</div>
                                            <div class="databox-stat themethirdcolor radius-bordered">
                                                <i class="stat-icon  icon-lg fa fa-tasks"></i>
                                            </div>
                                        </div>
                                    </div>
                                </div>
					</a>
				<a href="/index.php/Seller/Order/index/order_status/0" class="small-box-footer">
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                                    <div class="databox radius-bordered databox-shadowed databox-graded">
                                        <div class="databox-left bg-themeprimary">
                                            <div class="databox-piechart">
                                                <div data-toggle="easypiechart" class="easyPieChart" data-barcolor="#fff" data-linecap="butt" data-percent="50" data-animate="500" data-linewidth="3" data-size="47" data-trackcolor="rgba(255,255,255,0.1)" style="width: 47px; height: 47px; line-height: 47px;font-size:28px;">
                                                	<i class="fa fa-paste"></i>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="databox-right">
                                            <span class="databox-number themeprimary">{$count.handle_order}</span>
                                            <div class="databox-text darkgray">新订单</div>
											<div class="databox-stat themethirdcolor radius-bordered">
											    <i class="stat-icon  icon-lg fa fa-envelope-o"></i>
											</div>
                                        </div>
                                    </div>
                                </div>
						</a>
				<a href="/index.php/Seller/Goods/goodsList/goods_state/1" class="small-box-footer">
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                                    <div class="databox radius-bordered databox-shadowed databox-graded">
                                        <div class="databox-left bg-green">
                                            <div class="databox-piechart">
                                                <div data-toggle="easypiechart" class="easyPieChart" data-barcolor="#fff" data-linecap="butt" data-percent="50" data-animate="500" data-linewidth="3" data-size="47" data-trackcolor="rgba(255,255,255,0.1)" style="width: 47px; height: 47px; line-height: 47px;font-size:28px;">
                                                	<i class="fa fa-cubes"></i>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="databox-right">
                                            <span class="databox-number themeprimary">{$count.goods_sum}</span>
                                            <div class="databox-text darkgray">商品数</div>
                                            <div class="databox-state bg-themeprimary">
                                                <i class="fa fa-check"></i>
                                            </div>
                                        </div>
                                    </div>
                                </div>
							</a>
                <div class="clearfix visible-sm-block"></div>
		</div>
		<div class="row">
		                         <div class="col-md-12">
		                             <div class="profile-container">
		                                 <div class="profile-header row">
		                                     <div class="col-lg-2 col-md-4 col-sm-12 text-center">
		                                         <img src="<empty name='store.store_logo'>__PUBLIC__/images/not_adv.jpg<else/>{$store.store_logo}</empty>" alt="" class="header-avatar">
		                                     </div>
		                                     <div class="col-lg-4 col-md-8 col-sm-12 profile-info">
		                                         <div class="header-fullname">{$store.store_name}<br><span style="font-weight:900;color:#2dc3e8;font-size:20px;">织云易商登录账号：<br>{$store.mobile}<br><span style="font-size: 13px;color: #dd4b39">多个平台商家需要统一电话号码才可切换</span></span></div>
		                                         <!--<div class="header-fullname">{$store.store_name}</div>-->
		                                         <a href="{:U('Store/store_setting')}" class="btn btn-palegreen btn-sm  btn-follow" style="background:#a0d468;color:#fff;">
		                                             <i class="fa fa-check"></i>
		                                             编辑店铺
		                                         </a>
		                                         <div class="header-information">
		                                             {$store.store_zy}
		                                         </div>
		                                     </div>
		                                     <div class="col-lg-6 col-md-12 col-sm-12 col-xs-12 profile-stats">
		                                         <div class="row">
													 <a href="/index.php/Seller/Order/tuihuo_list">
														 <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 stats-col">
															 <div class="stats-value red" style="font-size: 60px;">{$count.refund_pay}个</div>
															 <div class="stats-title" style="color:#444;font-size: 30px;">未领取退货</div>
															 <div class="stats-title" style="color:red;font-size: 16px;">温馨提醒：3天后不领取将会面临罚款</div>
														 </div></a>
													 <a href="{:U('Goods/goodsList',array('goods_state'=>0))}">
		                                             <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 stats-col">
		                                                 <div class="stats-value pink">{$count.off_sale_goods}个</div>
		                                                 <div class="stats-title" style="color:#444;">待审产品</div>
		                                             </div>
													 </a>
													 <a href="{:U('Goods/goodsList',array('goods_state'=>3))}" style="color: #f39c12;">
		                                             <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 stats-col">
		                                                 <div class="stats-value pink">{$count.weigui}个</div>
		                                                 <div class="stats-title" style="color:#444;">违规产品</div>
		                                             </div>
													 </a>

		                                         </div>
		                                         <div class="row">
		                                             <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 inlinestats-col">
		                                                 <i class="glyphicon glyphicon-user"></i> <b>{$seller.seller_name}</b>(用户名:{$seller.user_name})
		                                             </div>
		                                             <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 inlinestats-col">
		                                                 Rate: <strong>2022</strong>
		                                             </div>
		                                             <div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 inlinestats-col">
		                                                 登陆时间: <strong>{$seller.last_login_time|date='Y-m-d H:i',###}</strong>
		                                             </div>
		                                         </div>
		                                     </div>
		                                 </div>
		                                 <div class="profile-body">
		                                     <div class="col-lg-14">
		                                         <div class="tabbable">
		                                             <ul class="nav nav-tabs tabs-flat  nav-justified" id="myTab11">
		                                                 <li class="active">
		                                                  <!--   <a data-toggle="tab" href="#overview">
		                                                         数据概况
		                                                     </a> -->
		                                                 </li>
		                                                 <li class="tab-red">
<!-- 		                                                     <a data-toggle="tab" href="#timeline">
		                                                         Events
		                                                     </a> -->
		                                                 </li>
		                                             </ul>
		                                             <div class="tab-content tabs-flat">
		                                                 <div id="overview" class="tab-pane active">
		                                                     <div class="row profile-overview">
		                                                         <div class="col-md-12">
		                                                             <div class="row">
		                                                                 <div class="col-lg-6 col-sm-6 col-xs-12">
		                                                                     <div class="databox databox-xlg databox-halved databox-shadowed databox-vertical no-margin-bottom">
		                                                                         <div class="databox-top bg-white padding-10">
		                                                                             <div class="col-lg-4 col-sm-4 col-xs-4">
																		<i class="fa fa-cubes" style="font-size:-webkit-xxx-large; display: block;color:#8cc474;"></i>
		                                                                                 
		                                                                             </div>
		                                                                             <div class="col-lg-8 col-sm-8 col-xs-8 text-align-left padding-10">
		                                                                                 <span class="databox-header carbon no-margin">产品信息</span>
		                                                                                 <span class="databox-text lightcarbon no-margin"> Product information by ViaTeams </span>
		                                                                             </div>
		                                                                         </div>
		                                                                         <div class="databox-bottom bg-white no-padding">
		                                                                             <div class="databox-row row-12">
		                                                                                 <div class="databox-row row-6 no-padding">
		                                                                                     <div class="databox-cell cell-4 text-align-center bordered-right bordered-platinum">
		                                                                                         <span class="databox-text sonic-silver  no-margin">在卖产品</span>
		                                                                                         <span class="databox-number lightcarbon no-margin">{$count.pass_goods}个</span>
		                                                                                     </div>
		                                                                                     <div class="databox-cell cell-4 text-align-center bordered-right bordered-platinum">
		                                                                                         <span class="databox-text sonic-silver  no-margin">在卖规格</span>
		                                                                                         <span class="databox-number lightcarbon no-margin">{$count.pass_goods_spec}个</span>
		                                                                                     </div>
		                                                                                     <div class="databox-cell cell-4 text-align-center bordered-right bordered-platinum">
		                                                                                         <span class="databox-text sonic-silver no-margin">库存预警</span>
		                                                                                         <span class="databox-number lightcarbon no-margin">{$count.warning_goods}个</span>
		                                                                                     </div>
		                                                                                     <div class="databox-cell cell-4 text-align-center">
		                                                                                         <span class="databox-text sonic-silver no-margin">促销产品</span>
		                                                                                         <span class="databox-number lightcarbon no-margin">{$count.prom_goods}个</span>
		                                                                                     </div>
																							 <div class="databox-cell cell-4 text-align-center bordered-right bordered-platinum">
																							     <span class="databox-text sonic-silver no-margin">未过审产品</span>
																							     <span class="databox-number lightcarbon no-margin">{$count.below_goods}个</span>
																							 </div>
																							 <div class="databox-cell cell-4 text-align-center">
																							     <span class="databox-text sonic-silver no-margin">违规产品</span>
																							     <span class="databox-number lightcarbon no-margin">{$count.weigui}个</span>
																							 </div>
		                                                                                 </div>
		                                                                                 <div class="databox-row row-6 padding-10">
																							 <a href="{:U('Goods/goodsList',array('goods_state'=>1))}">
		                                                                                     <button class="btn btn-palegreen btn-sm pull-right">查看详细</button>
																							 </a>
		                                                                                 </div>
		                                                                             </div>
		                                                                         </div>
		                                                                     </div>
		                                                                 </div>
		                                                                 <div class="col-lg-6 col-sm-6 col-xs-12">
		                                                                     <div class="databox databox-xlg databox-halved databox-shadowed databox-vertical no-margin-bottom">
		                                                                         <div class="databox-top bg-white padding-10">
		                                                                             <div class="col-lg-4 col-sm-4 col-xs-4">
		                                                                                 <i class="fa fa-paste" style="font-size:-webkit-xxx-large; display: block;color:#2dc3e8"></i>
		                                                                             </div>
		                                                                             <div class="col-lg-8 col-sm-8 col-xs-8 text-align-left padding-10">
		                                                                                 <span class="databox-header carbon no-margin">订单信息</span>
		                                                                                 <span class="databox-text lightcarbon no-margin"> Order information by ViaTeams! </span>
		                                                                             </div>
		                                                                         </div>
		                                                                         <div class="databox-bottom bg-white no-padding">
		                                                                             <div class="databox-row row-12">
		                                                                                 <div class="databox-row row-6 no-padding">
		                                                                                     <div class="databox-cell cell-4 text-align-center bordered-right bordered-platinum">
		                                                                                         <span class="databox-text sonic-silver  no-margin">待发货订单</span>
		                                                                                         <span class="databox-number lightcarbon no-margin">{$count.handle_order}</span>
		                                                                                     </div>
		                                                                                     <div class="databox-cell cell-4 text-align-center bordered-right bordered-platinum">
		                                                                                         <span class="databox-text sonic-silver no-margin">取消订单</span>
		                                                                                         <span class="databox-number lightcarbon no-margin">{$count.wait_confirm}</span>
		                                                                                     </div>
		                                                                                     <div class="databox-cell cell-4 text-align-center">
		                                                                                         <span class="databox-text sonic-silver no-margin">已发货订单</span>
		                                                                                         <span class="databox-number lightcarbon no-margin">{$count.part_shipping}</span>
		                                                                                     </div>
																							 <div class="databox-cell cell-4 text-align-center">
																							     <span class="databox-text sonic-silver no-margin">完成订单</span>
																							     <span class="databox-number lightcarbon no-margin">{$count.wancheng}</span>
																							 </div>
		                                                                                 </div>
		                                                                                 <div class="databox-row row-6 padding-10">
		                                                                                     <a href="/Seller/Order/index">
		                                                                                     <button class="btn btn-palegreen btn-sm pull-right">查看详细</button>
		                                                                                     </a>
		                                                                                 </div>
		                                                                             </div>
		                                                                         </div>
		                                                                     </div>
		                                                                 </div>
																		 <if condition="$article neq null">

																		 <div class="col-lg-6 col-sm-6 col-xs-12 " style="margin-top: 50px">
																			 <div style="height: auto" class="databox  databox-halved databox-shadowed databox-vertical no-margin-bottom">
																				 <div class="title_box">
																					 <span class="title_box_span">帮助中心</span>
																				 </div>
																				 <volist name="article" id="vo">
																				 <div class="title_box_list">
																					 <div class="title_box_list_title">
																						 <a href="javascript:;" onclick="content('{$vo.content}','{$vo.title}')">{$key+1}:{$vo.title}</a>

																					 </div>
																					 <div class="title_box_list_time">
																						 {$vo.add_time|date='Y-m-d H:i',###}
																					 </div>
																				 </div>
																				 </volist>

																			 </div>
																		 </div>
																		 </if>
																		 <if condition="$articleRead neq null">
																		 <div class="col-lg-6 col-sm-6 col-xs-12 " style="margin-top: 50px">
																			 <div style="height: auto" class="databox  databox-halved databox-shadowed databox-vertical no-margin-bottom">
																				 <div class="title_box">
																					 <span class="title_box_span">重要通知-商家必读</span>
																				 </div>
																				 <volist name="articleRead" id="vo">
																					 <div class="title_box_list">
																						 <div class="title_box_list_title">
																							 <a href="javascript:;" onclick="content('{$vo.content}','{$vo.title}')">{$key+1}:{$vo.title}</a>
																						 </div>
																						 <div class="title_box_list_time">
																							 {$vo.add_time|date='Y-m-d H:i',###}
																						 </div>
																					 </div>
																				 </volist>

																			 </div>
																		 </div>
																		 </if>


		                                                             </div>
		                                                         </div>
															 </div>
		                                                 </div>
													 </div>
		                                         </div>
		                                     </div>
		                                 </div>
		                             </div>
		                         </div>
		                     </div>
         
          
           <div hidden class="row">
                <div class="col-md-12">
                    <div class="box  box-success">
				        <div class="box-body">
				        	<div class="info-box">
					         	<table class="table table-bordered">
					         		<tr>
					         			<td>程序版本：</td><td>v3.5</td>
					         			<td>更新时间：</td><td>2021-05-01</td>
					         			<td>程序开发：</td><td>佛山维亚轩科技有限公司</td>			         			
					         		</tr>
					         		<tr>
					         			<td>版权所有：</td><td>众创织梦五金工品</td>
					         			<td>官方授权：</td><td><a href="http://www.vyxjj.com/" target="_blank">商业授权</a></td>
					         			<td>官方论坛：</td><td><a href="http://crm.vyxjj.com/" target="_blank">ViaWeb交流论坛</a></td>
					         		</tr>
					         	</table>
				         	</div>
				        </div>
                    </div>
                </div>
          </div>
          <div hidden class="callout callout-success">
            <p> <b>佛山维亚轩科技</b>--( Viaxuan的简称 ) B2B2C 开源商城    包含(pc + wap + android + ios + 微商城+小程序)多终端 </p>
          </div>
     </section> 
 </div>
 <?php
 if($count['handle_order']){
?>
<audio controls="controls" id="yuyin" autoplay="autoplay" style="display: none;">
<source src="/Public/images/tishi.mp3" type="audio/mpeg" />
</audio>
<?php
 }
?>
<!--<audio controls="controls" id="yuyins" autoplay="autoplay" style="display: none;">-->
<!--<source src="/Public/images/quxiao.mp3" type="audio/mpeg" />-->
<!--</audio>-->
 <script type="text/javascript">
 $(document).ready(function (){
	 	//检测是否过期
		 timeEnd();
	 })
	 function timeEnd(){
		 $.ajax({
			 url: "{:U('Seller/Index/store_time_end')}",
			 data: {},
			 type: 'post',
			 dataType: "json",
			 success: function (resp) {
			     console.log(resp)
				 //成功提示
				 if (resp.status == 1) {
				     $('.aaaa').show(200)
				     $('.sssss').html(resp.msg)
				// 	 layer.msg(resp.msg, {
				// 		 icon: 0,
				// 		 time: 20000
				// 	 });
				 }else{
				     $('.aaaa').hide(2)
				 }
			 }
		 });
	 }
	function play() {
        var music = document.getElementById("yuyin");
        $.post("/Seller/Index/welcome",
          {
            action:"dida"
          },
          function(data,status){
			  if(parseInt(data)>0){
				  if (music.paused) {console.log(data);
						music.paused = false;
						music.play();
					}
			  }
          });
        
    }
	function playquxiao() {
        var musics = document.getElementById("yuyins");
        $.post("/Seller/Index/welcome",
          {
            action:"quxiao"
          },
          function(datas,status){
			  if(parseInt(datas)>0){
				  if (musics.paused) {console.log(data);
						musics.paused = false;
						musics.play();
					}
			  }
          });
        
    }
	setInterval(function(){play();}, 50000);
// 	setInterval(function(){playquxiao();}, 270000);
 	$(".wrapper #chakan_kucun").click(function(){
 				var myrel=$(this).attr('rel');
 				var myrul='/index.php/seller/goods/chakan_kucun/goods_id/'+myrel;//+myrel;
 					layer.open({
 					  type: 2,
 					  title:'产品库存、价格明细',
 					  shadeClose: true, //点击遮罩关闭
 					  skin: 'layui-layer-rim', //加上边框
 					  area: ['90%', '620px'], //宽高
 					  content: myrul
 				})
 		});
		
	function content(text,title){

		layer.open({
			type: 0,
			title:title,
			shadeClose: true, //点击遮罩关闭
			skin: 'layui-layer-rim', //加上边框
			area: ['50%', '620px'], //宽高
			content: text
		})
	}

 </script>
 </body>
 </html>